package com.example.day0703;

/**
 * @author Lenovo
 */
public class Student {
    private String name;
    private int age;
    public void setName(String n){
        name = n;
    }
    public String getName(){
        return name;
    }
    public void setAge(int a){
        age = a;
    }
    public int getAge(){
        return age;
    }
    public void show(){
        System.out.println("姓名："+name+"年龄："+age);
    }
}
